/*
 * PopupLogsDialog.hpp
 *
 *  Created on: Nov 26, 2012
 *      Author: guillou
 */

#ifndef POPUPLOGSDIALOG_HPP_
#define POPUPLOGSDIALOG_HPP_

#include <QDialog>
#include <PopupOSAL.hpp>
#include "ui_logs.h"

struct PopupLogsDialog : public QDialog, PopupUtils::LoggerUI,
  private Ui_LogsDialog
{
  Q_OBJECT

public:
  PopupLogsDialog(QWidget *p_parent = 0);
  virtual ~PopupLogsDialog() {}

  // Implementation of LoggerUI interface
  void logmsg(PopupUtils::LogLevel p_level,
              const char *p_format,
              va_list p_args);

private slots:
  void slot_logMessage(const QString & p_message);

signals:
  void signal_logMessage(const QString & p_message);
};


#endif /* POPUPLOGSDIALOG_HPP_ */
